package com.wpp.rabbitmq.e_topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author wpp25
 * @date 2019/11/20 9:36
 * @description：
 * 05_topic_queue1
 * 05_topic_queue2
 */
@RabbitListener(queues = "05_topic_queue1")
@Component
public class TopicListener01 {

    @RabbitHandler
    public void test(String msg) {
        System.out.println("这是路由到队列05_topic_queue1的消息：====》"+ msg);
    }
}
